package com.itheima.service;

import com.github.pagehelper.Page;
import com.itheima.domain.Member;
import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;

import java.util.List;
import java.util.Map;

public interface MemberService {
    Member findByTelephone(String telephone);
    void add(Member member);
    List<Integer> findMemberCountByMonths(List<String> months);

    void update(Member member);

    Member findMemberById(String id);

    void edit2Telephone(String id,String telephone);

    PageResult findPage(QueryPageBean queryPageBean);

    Member findById(Integer id);

    void delete(Integer id);

    Member findSingleMember(Integer id);

    //使用手机号和验证码登录
    List<Map> getsetmealListByPhoneNumber(String phoneNumber);
}
